/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.barrientosjunior.utils;

import gnu.crypto.cipher.Serpent;
import java.security.InvalidKeyException;

/**
 *
 * @author Junior
 */
public class SerpentCipher {
/*
    public String encrypt(String content, String key) throws Exception{
        int bs = 16;

        Serpent ser = new Serpent();
        try {
            Object k = ser.makeKey(key.getBytes(), 16);
            String input = null;
            int start = 0;
            int end = start + bs;
            while(end < content.length() - 1){
                input = content.substring(i, i)
            }

            byte[] pt = input.getBytes();
            byte[] ct = new byte[bs];
            byte[] cpt = new byte[bs];

            ser.encrypt(pt, 0, ct, 0, k, bs);
        } catch (InvalidKeyException ex) {
            throw new Exception("Chave inválida, utilize chaves de 16, 24 ou 32 caracteres", ex);
        }
    }
 * 
 */
}
